import request from "../../request/request.js";

export default {
  getInfo: (data) => request.post("/api/user/info", data), //用户信息
  orderCount: (data) => request.get("/api/user/orderCount", data), //订单数量
  browserTop: (data) => request.get("/api/user/browserTop", data), //浏览记录
  browserPage: (data) => request.get("/api/user/browserPage", data),
  deleteBrowser: (data) => request.post("/api/user/deleteBrowser", data),
  clearBrowser: (data) => request.post("/api/user/clearBrowser", data),

  addressList: (data) => request.get("/api/user-address/list", data), //用户地址列表
  addressAdd: (data) => request.post("/api/user-address/add", data), //用户地址新增
  addressEdit: (data) => request.post("/api/user-address/update", data), //用户地址修改
  setDefault: (data) => request.post("/api/user-address/setDefault", data), //设置地址默认
  addressRead: (data) => request.get("/api/user-address/read", data), //读取一个地址
  addressDelete: (data) => request.get("/api/user-address/delete", data), //删除一个地址
  

  myBalance: (data) => request.get("/api/user-wallet/myBalance", data), //我的余额
  balanceLog: (data) => request.get("/api/user-wallet/balanceLog", data), //余额记录
  integralLog: (data) => request.get("/api/user-wallet/integralLog", data), //积分记录
};
